﻿using System.Collections.Generic;
using Nop.Core.Domain.Catalog;
using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Orders;

namespace Nop.Core.Domain.Shops
{
    public class Shop : BaseEntity
    {
        public virtual string ShopName{ get; set; }



        public virtual string AlipaySellerEmail { get; set; }
        public virtual string AlipayKey{ get; set; }
        public virtual string AlipayPartner{ get; set; }


        public virtual int CustomerId { get; set; }
        public virtual Customer Owner { get; set; }


        

        private ICollection<Product> _products;

        public virtual ICollection<Product> Products
        {
            get { return _products ?? (_products = new List<Product>()); }
            protected set { _products = value; }
        }


        private ICollection<Order> _orders;

        public virtual ICollection<Order> Orders
        {
            get { return _orders ?? (_orders = new List<Order>()); }
            protected set { _orders = value; }
        }

    }
}